<template>
    <div class="header-title">
        <span class="title">{{title}}</span>
        <div class="header-right fr btn">
            <slot name="header-link"></slot>
        </div>
    </div>
</template>

<script>
    export default {
        name: "HeaderTitle",
        props: {
            title: {
                type: String,
                default: ''
            }
        }
    }
</script>

<style scoped lang="less">
    .header-title {
        border-bottom: 1px solid #EBEBEB;
        margin: 0 20px;
        .title {
            display: inline-block;
            padding: 0 2px;
            height: 45px;
            line-height: 53px;
            font-size:18px;
            font-family:MicrosoftYaHei-Bold;
            font-weight:bold;
            color:rgba(51,51,51,1);
            position: relative;
            &:after  {
                content: '';
                display:inline-block;
                width:100%;
                height:2px;
                border-radius: 1px;
                background: #CF1311;
                position: absolute;
                bottom: 0;
                left: 0;
            }
        }
        .header-right {
            font-size:14px;
            line-height: 54px;
            font-family:MicrosoftYaHei;
            font-weight:400;
            color:rgba(24,142,238,1);
        }
    }
</style>